package com.djakapm.markdown.editor.util;

import org.apache.commons.configuration.Configuration;
import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;

public class ConfigManager {
    private static Configuration config;

    public static void init(String path) throws ConfigurationException {
        config = new PropertiesConfiguration(path);
    }

    public static String get(String key){
        String value = config.getString(key);
        return (value == null ? "" : value);
    }
}
